package model

import (
	"time"

	"gddgame.cc/galaxy/common/dsl/game/attr"
)

const MapNoName = "map_no"

type MapNo struct {
	Id       string `json:"id" orm:"primary" sql:"VARCHAR"`
	MapId    int    `json:"map_id" sql:"INT"`
	People   int    `json:"people" sql:"INT"`
	Identity int    `json:"identity" sql:"INT"`

	AutoStart bool     `json:"auto_status" sql:"TINYINT"`
	Nodes     []string `json:"nodes" sql:"JSON"`
	Status    bool     `json:"status" sql:"TINYTINT"`
	Content   []string `json:"content" sql:"JSON"`

	AiNode         string   `json:"ai_node" sql:"VARCHAR"`
	AiNodeLocal    string   `json:"ai_node_local" sql:"VARCHAR"`
	ManagerContent []string `json:"manager_content" sql:"JSON"`

	AttrEffect attr.AttrEffectSlice `json:"attr_effect" sql:"JSON"`

	CreateTime *time.Time `json:"create_time" orm:"createTime" sql:"DATETIME"`
}
